<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:t="http://myfaces.apache.org/tomahawk">


<table align="center">	
	<tr>
		<td align="center" valign="top">
			<p:dataTable var="preference"
				value="#{recommenderBean.booksPreferences1}" page="1" rows="10"
				paginator="true" pageLinks="0" paginatorTemplate="">
				<p:column>
					<f:facet name="header">
						<h:outputText value="#{msg.label_book}" />
					</f:facet>
					<h:outputText value="#{preference.item.description}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="#{msg.label_rate}" />
					</f:facet>
					<h:selectOneMenu value="#{preference.rate}">
						<f:selectItem itemLabel="#{msg.label_none}" itemValue="0" />
						<f:selectItem itemLabel="#{msg.label_excellent}"
							itemValue="5" />
						<f:selectItem itemLabel="#{msg.label_very_good}"
							itemValue="4" />
						<f:selectItem itemLabel="#{msg.label_average}" itemValue="3" />
						<f:selectItem itemLabel="#{msg.label_below_average}"
							itemValue="2" />
						<f:selectItem itemLabel="#{msg.label_bad}" itemValue="1" />
					</h:selectOneMenu>
				</p:column>
			</p:dataTable>										
		</td>
		<td align="center" valign="top">
			<p:dataTable var="preference"
				value="#{recommenderBean.booksPreferences2}" page="2" rows="10"
				paginator="true" pageLinks="0" paginatorTemplate="">
				<p:column>
					<f:facet name="header">
						<h:outputText value="#{msg.label_book}" />
					</f:facet>
					<h:outputText value="#{preference.item.description}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="#{msg.label_rate}" />
					</f:facet>
					<h:selectOneMenu value="#{preference.rate}">
						<f:selectItem itemLabel="#{msg.label_none}" itemValue="0" />
						<f:selectItem itemLabel="#{msg.label_excellent}"
							itemValue="5" />
						<f:selectItem itemLabel="#{msg.label_very_good}"
							itemValue="4" />
						<f:selectItem itemLabel="#{msg.label_average}" itemValue="3" />
						<f:selectItem itemLabel="#{msg.label_below_average}"
							itemValue="2" />
						<f:selectItem itemLabel="#{msg.label_bad}" itemValue="1" />
					</h:selectOneMenu>
				</p:column>
			</p:dataTable>										
		</td>
		<td align="center" valign="top"> 
			<p:dataTable var="preference"
				value="#{recommenderBean.booksPreferences3}" page="3" rows="10"
				paginator="true" pageLinks="0" paginatorTemplate="">
				<p:column>
					<f:facet name="header">
						<h:outputText value="#{msg.label_book}" />
					</f:facet>
					<h:outputText value="#{preference.item.description}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="#{msg.label_rate}" />
					</f:facet>
					<h:selectOneMenu value="#{preference.rate}">
						<f:selectItem itemLabel="#{msg.label_none}" itemValue="0" />
						<f:selectItem itemLabel="#{msg.label_excellent}"
							itemValue="5" />
						<f:selectItem itemLabel="#{msg.label_very_good}"
							itemValue="4" />
						<f:selectItem itemLabel="#{msg.label_average}" itemValue="3" />
						<f:selectItem itemLabel="#{msg.label_below_average}"
							itemValue="2" />
						<f:selectItem itemLabel="#{msg.label_bad}" itemValue="1" />
					</h:selectOneMenu>
				</p:column>
			</p:dataTable>										
		</td>
	</tr>
</table>

</ui:composition>